package com.xc.hotelmgr.datahandlermt.service.mybatis.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xc.hotelmgr.datahandlermt.mapper.HtHotelinfoMapper;
import com.xc.hotelmgr.datahandlermt.pojo.mybatis.HtHotelinfo;
import com.xc.hotelmgr.datahandlermt.service.mybatis.HtHotelinfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collection;
import java.util.List;

@Service
public class HtHotelinfoServiceImpl extends ServiceImpl<HtHotelinfoMapper, HtHotelinfo> implements HtHotelinfoService {

    @Autowired
    private HtHotelinfoMapper htHotelinfoMapper;

    @Override
    public List<HtHotelinfo> listAll() {
        return null;
    }

    @Override
    public HtHotelinfo getById(Long id) {
        return htHotelinfoMapper.getById(id);
    }

    @Override
    public int insert(HtHotelinfo htHotelinfo) {
        return 0;
    }

    @Override
    public int insertIgnoreNull(HtHotelinfo htHotelinfo) {

        return htHotelinfoMapper.insertIgnoreNull(htHotelinfo);
    }

    @Override
    public int update(HtHotelinfo htHotelinfo) {
        return 0;
    }

    @Override
    public int updateIgnoreNull(HtHotelinfo htHotelinfo) {
        return 0;
    }

    @Override
    public int delete(HtHotelinfo htHotelinfo) {
        return 0;
    }

    @Override
    public HtHotelinfo getByHotelCode(Long hotelCode) {
        return htHotelinfoMapper.getByHotelCode(hotelCode);
    }

    @Override
    public List<HtHotelinfo> getByHotelCodes(List<Long> hotelIds) {
        return baseMapper.getByHotelCodes(hotelIds);
    }

}
